package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.EmpSocBackRecordAccountAddDTO;
import org.jsola.hr.dto.EmpSocBackRecordAccountUpdateDTO;
import org.jsola.hr.query.EmpSocBackRecordAccountQuery;
import org.jsola.hr.vo.EmpSocBackRecordAccountListVO;
import org.jsola.hr.vo.EmpSocBackRecordAccountVO;

import java.util.List;

/**
 * 社保回款账户
 *
 * @author zhr
 */
@Api(tags = "hr-社保回款账户")
public interface IEmpSocBackRecordAccountControllerAPI {

    /**
     * 新增社保回款账户
     * @param empSocBackRecordAccountAddDTO 社保回款账户新增实体
     * @return 社保回款账户展示对象
     */
    @ApiOperation(value = "新增社保回款账户")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackRecordAccountAddDTO", dataType = "EmpSocBackRecordAccountAddDTO", value = "新增社保回款账户", paramType = "body")
    })
    Result<EmpSocBackRecordAccountVO> save(EmpSocBackRecordAccountAddDTO empSocBackRecordAccountAddDTO);


    /**
     * 修改社保回款账户
     * @param empSocBackRecordAccountUpdateDTO 社保回款账户
     * @return 更新数量
     */
    @ApiOperation(value = "修改社保回款账户")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackRecordAccountUpdateDTO", dataType = "EmpSocBackRecordAccountUpdateDTO", value = "修改社保回款账户", paramType = "body")
    })
    Result<Integer> update(EmpSocBackRecordAccountUpdateDTO empSocBackRecordAccountUpdateDTO);




    /**
     * 删除单个社保回款账户，彻底删除
     * @param empSocBackRecordAccountId 社保回款账户id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个社保回款账户，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackRecordAccountId", dataType = "String", value = "社保回款账户id", paramType = "path")
    })
    Result<Integer> delete(String empSocBackRecordAccountId);


    /**
     * 批量删除社保回款账户，彻底删除
     * @param empSocBackRecordAccountIds 社保回款账户id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除社保回款账户，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackRecordAccountIds", dataType = "String[]", value = "社保回款账户id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] empSocBackRecordAccountIds);


    /**
     * 根据社保回款账户id查询社保回款账户详情
     * @param empSocBackRecordAccountId 社保回款账户id
     * @return 社保回款账户详情
     */
    @ApiOperation(value="根据社保回款账户id查询社保回款账户详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackRecordAccountId", dataType = "String", value = "社保回款账户id", paramType = "path")
    })
    Result<EmpSocBackRecordAccountVO> findById(String empSocBackRecordAccountId);


    /**
     * 查询社保回款账户
     * @param empSocBackRecordAccountQuery 社保回款账户查询参数
     * @return page
     */
    @ApiOperation(value="查询社保回款账户")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackRecordAccountQuery", dataType = "EmpSocBackRecordAccountQuery", value = "社保回款账户查询参数", paramType = "query")
    })
    Result<List<EmpSocBackRecordAccountListVO>> listAll(EmpSocBackRecordAccountQuery empSocBackRecordAccountQuery);


     /**
     * 分页查询社保回款账户
     * @param empSocBackRecordAccountQuery 社保回款账户查询参数
     * @return page
     */
    @ApiOperation(value="分页查询社保回款账户")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackRecordAccountQuery", dataType = "EmpSocBackRecordAccountQuery", value = "社保回款账户查询参数", paramType = "query")
    })
    Result<Page<EmpSocBackRecordAccountListVO>> page(EmpSocBackRecordAccountQuery empSocBackRecordAccountQuery);


}

